import {toRefs,reactive,computed} from 'vue'
export  default function getListHook(){
   // 计算属性
   interface Idata {
    time: string
    list: Array<string>
    title: string
    timeCup: any
    run(): void
  }
  let datas: Idata = reactive({
    time: '2022-8-11',
    list: ['足球', '篮球', '乒乓球'],
    title: '今日活动',
    timeCup: computed(() => {
      return datas.time + ' 14:16'
    }),
    run () {
      datas.title = '明日之子'
    }
  })
  return toRefs(datas)
}